package com.zygh.coordinatestore.util;

public class Cut {

    /**
     * 截取gps
     *
     * @param gps
     * @return
     */
    public static String cutOut(String gps) {
        //String gps = "POLYGON((113.725815 34.761912,113.732703 34.764265,113.732735 34.765146,113.736759 34.766927,113.738368 34.766962,113.740278 34.767464,113.743472 34.76882,113.744201 34.767559,113.744427 34.766528,113.744507 34.754973,113.744636 34.753911,113.746315 34.750742,113.746948 34.747916,113.739786 34.748701,113.726472 34.746894,113.726853 34.760032,113.725815 34.761912))";
        String substring = gps.substring(gps.indexOf("(") + 2, gps.indexOf(")"));
        return substring;
    }

    
    public static void main(String[] args) {

        String s = "dsfdsfa";
        byte[] bytes = s.getBytes();
        for (int i = 0; i < bytes.length; i++) {
            System.out.println((char)bytes[i]);
        }
    }
}
